package com.qidianit.mes.production.mapper;

import com.qidianit.mes.pojo.Process;
import com.qidianit.mes.pojo.ProcessSteps;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author djl
 * @Time 2024/10/17 9:54
 */
public interface ProcessStepMapper {

    List<ProcessSteps> listByProcessId(String processId);

    Integer countProcessSteps(String processId);

    ProcessSteps selectByProcessIdAndStepId(String processId, int processStepId);

    void addNewStep(ProcessSteps processSteps);

    Integer editStep(ProcessSteps processSteps,@Param("beforeStepId") int beforeStepId);

    Integer deleteStep(String processId, int processStepId);

    Integer reDelete(@Param("stepIds")int[] stepIds, String processId);

    ProcessSteps showByOperationStepId(Integer operationStepId);
}
